package Java0307;

import java.util.Scanner;

public class ScoresDemo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("输入王菲的语文成绩：");
        double chineseScores = sc.nextDouble();
        System.out.println("输入王菲的数学成绩：");
        double mathScores = sc.nextDouble();
        System.out.println("输入王菲的英语成绩：");
        double englishScores = sc.nextDouble();
        double sum = chineseScores + mathScores + englishScores;
        double avg = sum / 3;
        if (chineseScores >= 60 && mathScores >= 60 && englishScores >= 60 && avg > 80) {
            System.out.println("语文：" + chineseScores + "分");
            System.out.println("数学：" + mathScores + "分");
            System.out.println("英语：" + englishScores + "分");
            System.out.println("获得一等奖学金1500元");
        } else if (chineseScores >= 60 && mathScores >= 60 && englishScores >= 60 && avg > 75) {
            System.out.println("语文：" + chineseScores + "分");
            System.out.println("数学：" + mathScores + "分");
            System.out.println("英语：" + englishScores + "分");
            System.out.println("获得二等奖学金1000元");
        } else if ((chineseScores < 60 || mathScores < 60 || englishScores < 60) && avg > 70) {
            System.out.println("语文：" + chineseScores + "分");
            System.out.println("数学：" + mathScores + "分");
            System.out.println("英语：" + englishScores + "分");
            System.out.println("获得三等奖学金500元");
        }
    }
}
